package com.huanghuang.shuadan.common.exception.base;

import com.huanghuang.shuadan.common.exception.ExceptionEnum;

/**
 * @Author suxiaoxiao
 * @Date 2019/7/13 22:31
 * @Version 1.0
 */
public enum BaseExceptionEnum implements ExceptionEnum {

    /**
     * 系统繁忙，请稍后重试。
     */
    SYSTEM_BUSY("200", "系统繁忙，请稍后重试。"),

    PARAMS_VALID_FAILED("200", "参数校验失败");

    private String code;
    private String message;

    BaseExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
